<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="Tables.ascx.cs" Inherits="Framework.Portal.Layouts.Admin.Components.Database.Tables" %>
<div>
<asp:UpdatePanel ID="upanelGridUserManagemt" runat="server" UpdateMode="Conditional" RenderMode="Inline">
<ContentTemplate>
<table class="content" cellspacing="1" cellpadding="0" width="100%">
     <tr>
        <td class="header1" colspan="9" align="left" style="height: 19px">
            <asp:Label ID="lblCommandName" runat="server"></asp:Label>
        </td>        
    </tr>
    <tr>
        <td class="header2" align="left">
            <asp:CheckBox runat="server" ID="chkAll" onclick="Check(this,'dtgInfos');highlightChkBxRow(this);" /></td>
        <td class="header2" align="left" style="width: 63px">
            Owner</td>
        <td class="header2" align="left">
            Table</td>
        <td class="header2" align="left">
            Rows</td>
        <td class="header2" align="left">
            Creation date</td>
        <td class="header2" align="left">
            filegroup</td>
        <td class="header2" align="left">
            Property</td>
        <td class="header2" align="left">
            Drop</td>
        <td class="header2" align="left" style="width: 73px">
            Rename</td>
    </tr>
    <asp:Repeater ID="dtgInfos" runat="server" OnItemCommand="dtgInfos_ItemCommand">
    <ItemTemplate>
        <tr>            
            <td class="post" align="left">
                <input runat="server" id="checkDrop" type="checkbox" onclick="javascript: highlightChkBxRow(this);" />
            </td>
            <td class="post" align="left">
                <asp:Label ID="lblValue" runat="server" Text='<%# Eval("owner") %>'></asp:Label>
            </td>  
            <td class="post" align="left">
                <LinkButton:View ID="btnName" runat="server" Text='<%# Eval("name") %>' CommandName="Property" CommandArgument='<%# Eval("id") %>'></LinkButton:View>
            </td> 
            <td class="post" align="left">
                <asp:Label ID="Label2" runat="server" Text='<%# Eval("rows") %>'></asp:Label>
            </td> 
            <td class="post" align="left">
                <asp:Label ID="Label3" runat="server" Text='<%# Eval("crdate") %>'></asp:Label>
            </td> 
            <td class="post" align="left">
                <asp:Label ID="Label4" runat="server" Text='<%# Eval("filegroup") %>'></asp:Label>
            </td> 
            <td class="post" align="left">
                <LinkButton:View ID="btnProperty" runat="server" Text="Property" CommandName="Property" CommandArgument='<%# Eval("id") %>'></LinkButton:View>
            </td> 
            <td class="post" align="left">
                <LinkButton:View ID="btnDrop" runat="server" Text="Drop" CommandName="Drop" CommandArgument='<%# Eval("id") %>'></LinkButton:View>
            </td> 
            <td class="post" align="left">
                <LinkButton:View ID="btnRename" runat="server" Text="Rename" CommandName="Rename" CommandArgument='<%# Eval("id") %>'></LinkButton:View>
            </td>          
        </tr>
    </ItemTemplate>
    <AlternatingItemTemplate>
        <tr>
            <td class="postheader" align="left">
                <input runat="server" id="checkDrop" type="checkbox" value="" />
            </td>
            <td class="postheader" align="left">
                <asp:Label ID="Label8" runat="server" Text='<%# Eval("owner") %>'></asp:Label>
            </td>  
            <td class="postheader" align="left">
                <LinkButton:View ID="btnName" runat="server" Text='<%# Eval("name") %>' CommandName="Property" CommandArgument='<%# Eval("id") %>'></LinkButton:View>
            </td> 
            <td class="postheader" align="left">
                <asp:Label ID="Label2" runat="server" Text='<%# Eval("rows") %>'></asp:Label>
            </td> 
            <td class="postheader" align="left">
                <asp:Label ID="Label3" runat="server" Text='<%# Eval("crdate") %>'></asp:Label>
            </td> 
            <td class="postheader" align="left">
                <asp:Label ID="Label4" runat="server" Text='<%# Eval("filegroup") %>'></asp:Label>
            </td> 
            <td class="post" align="left">
                <LinkButton:View ID="btnProperty" runat="server" Text="Property" CommandName="Property" CommandArgument='<%# Eval("id") %>'></LinkButton:View>
            </td> 
            <td class="post" align="left">
                <LinkButton:View ID="btnDrop" runat="server" Text="Drop" CommandName="Drop" CommandArgument='<%# Eval("id") %>'></LinkButton:View>
            </td> 
            <td class="post" align="left">
                <LinkButton:View ID="btnRename" runat="server" Text="Rename" CommandName="Rename" CommandArgument='<%# Eval("id") %>'></LinkButton:View>
            </td>                
        </tr>
    </AlternatingItemTemplate>
    </asp:Repeater>
        <tr>
            <td class="postfooter" colspan="9" height="18" align="left">
            <NS:Button LocalizedPage="ACTION" LocalizedTag="CREATE" Authenticated="CREATE" ID="btnNewTable" runat="server" CssClass="pbutton" Text="New Table" OnClick="btnNewTable_Click" />&nbsp;
            <NS:Button LocalizedPage="ACTION" LocalizedTag="DELETE" Authenticated="DELETE" ID="btnDropTable" runat="server" CssClass="pbutton" Text="Drop" OnClick="btnDropTable_Click" /></td>
        </tr>
</table>
</ContentTemplate>
</asp:UpdatePanel>
</div>